package com.dbms;
/**
 * 存储过程参数集合
 * @author yunxiangfu@163.com
 *
 */
public class CallParameter {

	private Object value;//参数值
	private int inType;//输入参数类型
	private int outType;//out参数,返回数据类型
	private boolean out;//是否为输出参数
	private boolean toString;//存储过程需返回结果集时数据是否已String方式获取
	private Class<?> listToType;//存储过程需返回结果集时所用的赋值对象
	public Object getValue() {
		return value;
	}
	public void setValue(Object value) {
		this.value = value;
	}
	public boolean isOut() {
		return out;
	}
	public void setOut(boolean out) {
		this.out = out;
	}
	public boolean isToString() {
		return toString;
	}
	public void setToString(boolean toString) {
		this.toString = toString;
	}
	public Class<?> getListToType() {
		return listToType;
	}
	public void setListToType(Class<?> listToType) {
		this.listToType = listToType;
	}
	public CallParameter(Object value,int inType){
		this.value=value;
		this.inType=inType;
	}
	public CallParameter(Object value,int outType,boolean out,Class<?> listToType,boolean toString){
		this.value=value;
		this.outType=outType;
		this.out=out;
		this.listToType=listToType;
		this.toString=toString;
	}
	public int getInType() {
		return inType;
	}
	public void setInType(int inType) {
		this.inType = inType;
	}
	public int getOutType() {
		return outType;
	}
	public void setOutType(int outType) {
		this.outType = outType;
	}
}
